package com.ctshk.rpc.order.tour.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 系列团折扣记录
 * </p>
 *
 * @author 谭响
 * @since 2021-01-22
 */
@Data
@ApiModel(value="系列团折扣记录编辑Req", description="系列团折扣记录编辑Req")
public class SeriesOrderDiscountEditReq implements Serializable {

    @NotNull(message = "折扣记录ID不能为空")
    @ApiModelProperty(value = "折扣记录ID",required = true)
    private Long id;

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @ApiModelProperty(value = "游客ID")
    private Long touristId;

    @ApiModelProperty(value = "折扣前应收金额")
    private BigDecimal beforeAmount;

    @NotNull(message = "折扣金额不能为空")
    @ApiModelProperty(value = "折扣金额",required = true)
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = "折扣类型ID不能为空")
    @ApiModelProperty(value = "折扣类型ID",required = true)
    private Long discountTypeId;

    @NotNull(message = "折扣类型不能为空")
    @ApiModelProperty(value = "折扣类型",required = true)
    private String discountType;

    @ApiModelProperty(value = "用户Id")
    private Long userId;


}
